home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pMember, pLineHeight
- global gDBPictObjList
-
- on new me, theSliderName, thecast, theThumbChannel, theThumbLoc, minPixel, maxPixel, initialSetting, numSettings, minSetting, maxSetting, isContinuous, isHoriz, directionOfIncrease, descendant
- if objectp(descendant) then
- PassObj = descendant
- else
- PassObj = me
- end if
- ancestor = new(script("slider thumb"), theSliderName, thecast, theThumbChannel, theThumbLoc, minPixel, maxPixel, initialSetting, numSettings, minSetting, maxSetting, isContinuous, isHoriz, directionOfIncrease, PassObj)
- MyObj = getaProp(gDBPictObjList, GetObjProp())
- pMember = GetMember(MyObj)
- pLineHeight = the textHeight of member pMember
- return me
- end
-
- on performFunction me
- MyObj = getaProp(gDBPictObjList, GetObjProp())
- scroll(MyObj, me.pSetting - 1)
- member(pMember).scrollTop = pLineHeight * (me.pSetting - 1)
- updateStage()
- return me
- end
-
- on disable me
- me.pIsDisabled = 1
- set the loc of sprite the pThumbChannel of me to point(-9999, -9999)
- return me
- end
-
- on buttonLoc me
- return me
- end
-